<?php require('./core.inc.php'); ?>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" dir="ltr" lang="en-US" xml:lang="en">
<head>

    <!-- TEMA DA SOSTITUIRE -->

    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
    <title><?php echo $conf['titolo']; ?></title>
    

    
    <link rel="stylesheet" href="style.css" type="text/css" media="screen" />
    <link rel="stylesheet" href="jquery-ui.css" type="text/css" media="screen" />
    <!--[if IE 6]><link rel="stylesheet" href="style.ie6.css" type="text/css" media="screen" /><![endif]-->
    <!--[if IE 7]><link rel="stylesheet" href="style.ie7.css" type="text/css" media="screen" /><![endif]-->
    <script type="text/javascript" src="./core/js/jquery.js"></script>
    <script type="text/javascript" src="./core/js/jquery.validate.js"></script>

</head>
<body>
<div id="art-page-background-glare">
        <div id="art-page-background-glare-image">
    <div id="art-main">
        <div class="art-sheet">
            <div class="art-sheet-tl"></div>
            <div class="art-sheet-tr"></div>
            <div class="art-sheet-bl"></div>
            <div class="art-sheet-br"></div>
            <div class="art-sheet-tc"></div>
            <div class="art-sheet-bc"></div>
            <div class="art-sheet-cl"></div>
            <div class="art-sheet-cr"></div>
            <div class="art-sheet-cc"></div>
            <div class="art-sheet-body">
                <div class="art-header">
                    <div class="art-header-center">
                        <div class="art-header-png"></div>
                    </div>
                    <div class="art-logo">
                    
                     <h1 id="name-text" class="art-logo-name"><a href="./">
                     	<?php echo $conf['titolo']; ?>
                     </a></h1>
                     
                     <h2 id="slogan-text" class="art-logo-text">
                     	<?php echo $conf['sottot']; ?>
                     </h2>
                      
                    </div>
                </div>
                <div class="art-nav">
                	<div class="l"></div>
                	<div class="r"></div>
                	<ul class="art-menu">
                		<li>
                			<a href="#" class="active"><span class="l"></span><span class="r"></span><span class="t">Home</span></a>
                		</li>
                		<li>
                			<a href="#"><span class="l"></span><span class="r"></span><span class="t">Menu Item</span></a>
                			<ul>
                				<li><a href="#">Menu Subitem 1</a>
                					<ul>
                						<li><a href="#">Menu Subitem 1.1</a></li>
                						<li><a href="#">Menu Subitem 1.2</a></li>
                						<li><a href="#">Menu Subitem 1.3</a></li>
                					</ul>
                				</li>
                				<li><a href="#">Menu Subitem 2</a></li>
                				<li><a href="#">Menu Subitem 3</a></li>
                			</ul>
                		</li>		
                		<li>
                			<a href="#"><span class="l"></span><span class="r"></span><span class="t">About</span></a>
                		</li>
                	</ul>
                </div>
                <div class="art-content-layout">
                    <div class="art-content-layout-row">
                        <div class="art-layout-cell art-sidebar1">
                          <div class="art-vmenublock">
                              <div class="art-vmenublock-body">
                              
                              	<div class="art-vmenublockheader">
                              		<h3 class="t">Volontario</h3>
                              	</div>
                              	
                           	<?php if ( identificato() ) { ?>
                           		Ciao, <?php $me->stampa(); ?>!<br />
                           		(<a href="./profilo">vai al mio profilo</a> o <a href="./logout">fai il logout</a>)
                           	<?php } else { ?>
                           		Accesso non effettuato.<br />
                           		<a href="./login">Clicca per entrare</a>.
                           	<?php } ?>
                           	<br />
                           	
                           	<hr />
                                          <div class="art-vmenublockheader">
                                              <h3 class="t">Navigation</h3>
                                          </div>
                                          <div class="art-vmenublockcontent">
                                              <div class="art-vmenublockcontent-body">
                                                         

                                          		<div class="cleared"></div>
                                              </div>
                                          </div>
                          		<div class="cleared"></div>
                              </div>
                          </div>
                          <div class="art-block">
                              <div class="art-block-body">
                                          <div class="art-blockheader">
                                              <h3 class="t">Newsletter</h3>
                                          </div>
                                          <div class="art-blockcontent">
                                              <div class="art-blockcontent-body">
                                                          <div><form method="get" id="newsletterform" action="javascript:void(0)">
                                                          <input type="text" value="" name="email" id="s" style="width: 95%;" />
                                                          <span class="art-button-wrapper">
                                                          	<span class="art-button-l"> </span>
                                                          	<span class="art-button-r"> </span>
                                                          	<input class="art-button" type="submit" name="search" value="Subscribe" />
                                                          </span>
                                                          
                                                          </form></div>
                                          
                                          		<div class="cleared"></div>
                                              </div>
                                          </div>
                          		<div class="cleared"></div>
                              </div>
                          </div>
                          <div class="art-block">
                              <div class="art-block-body">
                                          <div class="art-blockheader">
                                              <h3 class="t">Highlights</h3>
                                          </div>
                                          <div class="art-blockcontent">
                                              <div class="art-blockcontent-body">
                                                          <div>
                                                                            <ul>
                                                                             <li><a href="#">Home</a></li>
                                                                             <li><a href="#">Overview</a></li>
                                                                             <li><a href="#">Demo</a></li>
                                                                             <li><a href="#">Download</a></li>
                                                                             <li><a href="#">FAQ</a></li>
                                                                             <li><a href="#">Hyperlink</a></li>
                                                                             <li><a href="#" class="visited">Visited link</a></li>
                                                                             <li><a href="#" class="hover">Hovered link</a></li>
                                                                            </ul>
                                                                            
                                                                            <p><b>Jun 14, 2008</b><br />
                                                                            Aliquam sit amet felis. Mauris semper,
                                                                            velit semper laoreet dictum, quam
                                                                            diam dictum urna, nec placerat elit
                                                                            nisl in quam. Etiam augue pede,
                                                                            molestie eget, rhoncus at, convallis
                                                                            ut, eros. Aliquam pharetra.<br />
                                                                            <a href="javascript:void(0)">Read more...</a></p>
                                                          
                                                                            <p><b>Aug 24, 2008</b><br />
                                                                            Aliquam sit amet felis. Mauris semper,
                                                                            velit semper laoreet dictum, quam
                                                                            diam dictum urna, nec placerat elit
                                                                            nisl in quam. Etiam augue pede,
                                                                            molestie eget, rhoncus at, convallis
                                                                            ut, eros. Aliquam pharetra.<br />
                                                                            <a href="javascript:void(0)">Read more...</a></p>
                                                                            </div>

                                          		<div class="cleared"></div>
                                              </div>
                                          </div>
                          		<div class="cleared"></div>
                              </div>
                          </div>
                          <div class="art-block">
                              <div class="art-block-body">
                                          <div class="art-blockheader">
                                              <h3 class="t">Contact Info</h3>
                                          </div>
                                          <div class="art-blockcontent">
                                              <div class="art-blockcontent-body">
                                                          <div>
                                                                <img src="images/contact.jpg" alt="an image" style="margin: 0 auto;display:block;width:95%" />
                                                          <br />
                                                          <b>Company Co.</b><br />
                                                          Las Vegas, NV 12345<br />
                                                          Email: <a href="mailto:info@company.com">info@company.com</a><br />
                                                          <br />
                                                          Phone: (123) 456-7890 <br />
                                                          Fax: (123) 456-7890
                                                          </div>
                                          
                                          		<div class="cleared"></div>
                                              </div>
                                          </div>
                          		<div class="cleared"></div>
                              </div>
                          </div>
                          <div class="cleared"></div>
                        </div>
                        <div class="art-layout-cell art-content">
                          <div class="art-post">
                              <div class="art-post-body">
                          <div class="art-post-inner art-article">

                                          <div class="art-postcontent">
                                                  <?php
                                             	
                                             		// Formula il percorso della pagina
							if (empty($_GET['p'])) {
								$p = 'home';
							} else {
								$p = $_GET['p'];
							}
							$file = './inc/' . $p . '.php';
							
							// Se il file non esiste...
							if ( !file_exists($file) ) {
								// Carica la pagina di errore
								$file = './inc/errore404.php';
							}
							
							// Carica la pagina
							include($file);
							

                                             ?> 
                                        <!-- Qui una volta -->
                                                  
                                          </div>
                                          <div class="cleared"></div>
                          </div>
                          
                          		<div class="cleared"></div>
                              </div>
                          </div>
                          
                          <div class="cleared"></div>
                        </div>
                    </div>
                </div>
                <div class="cleared"></div>
                <div class="art-footer">
                    <div class="art-footer-t"></div>
                    <div class="art-footer-l"></div>
                    <div class="art-footer-b"></div>
                    <div class="art-footer-r"></div>
                    <div class="art-footer-body">
                         <a href="#" class="art-rss-tag-icon" title="RSS"></a>
                        <div class="art-footer-text">
                            <p><a href="#">Link1</a> | <a href="#">Link2</a> | <a href="#">Link3</a></p>
                            <p>©<?php echo date('Y'); ?> <a href="http://giovanicrict.altervista.org/"><?php echo $conf['footer']; ?></a> 
		&mdash; Comitato Provinciale di Catania.</p>
                        </div>
                		<div class="cleared"></div>
                    </div>
                </div>
        		<div class="cleared"></div>
            </div>
        </div>
        <div class="cleared"></div>
		<p class="art-page-footer">(<a href="./info">Info, licenza e contributori</a>)</p>
    </div>
        </div>
    </div>
    
    
    
    
    
</body>
</html>
